<?php
/**
 * @link http://www.tintsoft.com/
 * @copyright Copyright (c) 2013 TintSoft LLC
 * @license http://www.tintsoft.com/license/
 */
$params = require (__DIR__ . '/params.php');
$config = [
        'id' => 'yuncms',
        'name' => 'YUNCMS内容管理系统',
        'basePath' => dirname ( __DIR__ ),
        'components' => [
                'request' => [
                        'enableCsrfValidation' => true
                ],
                'cache' => [
                        'class' => 'Leaps\Caching\FileCache'
                ],
                'user' => [
                        'identityClass' => 'app\models\User'
                ],

                'mail' => [
                        'class' => 'Leaps\Swiftmailer\Mailer'
                ],
                'log' => [
                        'traceLevel' => LEAPS_DEBUG ? 3 : 0,
                        'targets' => [
                                [
                                        'class' => 'Leaps\Log\FileTarget',
                                        'levels' => [
                                                'trace',
                                                'error',
                                                'warning'
                                        ]
                                ]
                        ]
                ]
        ],
        'params' => $params
];
return $config;